


    {include file="public:header"/}


    {include file="public:sidemenu"/}

        <div class="tpl-content-wrapper">
            <div class="tpl-content-page-title">
                比赛列表
            </div>
          
            <div class="tpl-portlet-components">
              <!--  <div class="portlet-title">
                    <div class="caption font-green bold">
                        <span class="am-icon-code"></span> 比赛列表
                    </div>
                    <form action="{:url('match/index')}" method="post">
                    <div class="tpl-portlet-input tpl-fz-ml">
                        <div class="am-form-group">
                            <select data-am-selected="{btnSize: 'sm'}" name="method">
                                <option value="0">选择搜索类别</option>
                                <option value="co_name">比赛名称</option>
                                <option value="co_intro">比赛介绍</option>
                                <option value="co_price">报名价格</option>
                            </select>
                        </div>
                        <div class="portlet-input input-small input-inline">
                            <div class="input-icon right">
                                <i class="am-icon-search"></i>
                                <input type="text" name="search" class="form-control form-control-solid" placeholder="搜索...">
                            </div>
                        </div>
                    </div>
                    </form>
                </div>-->
                <div class="tpl-block">
                    <div class="am-g">
                        <div class="am-u-sm-12 am-u-md-6">
                            <div class="am-btn-toolbar">
                                <div class="am-btn-group am-btn-group-xs">
                                   <a href="{:url('formmatch/add')}" style="color: #ffffff; display:block;" id="add1"><button type="button" class="am-btn am-btn-default am-btn-success"><span class="am-icon-plus"></span>新增</button></a>                                   
                                </div>
                            </div>
                        </div>
                        <button class="am-btn am-btn-secondary" type="button"><a href="{:url('formmatch/jiekou')}">查看</a></button>
                        
                        
                    </div>
                    <div class="am-g" id="dis1">
                        <div class="am-u-sm-12">
                            <form class="am-form">
                                <table class="am-table am-table-striped am-table-hover table-main">
                                    <thead>
                                        <tr>
                                            
                                            <th class="table-id">ID</th>
                                            <th class="table-type">海报</th>
                                            <th class="table-title">比赛名称</th>
                                            <th class="table-type">比赛介绍</th>
                                            <th class="table-type">比赛地点</th>
                                            <th class="table-type am-hide-sm-only">比赛时间</th>
                                            <th class="table-type">报名价格</th>
                                            <th class="table-set">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        {volist name="contests" id="vo"}
                                        <tr>
                                            
                                            <td>{$i}</td>
                                            <td><img src="__STATIC__/posters/{$vo.co_poster}" style="width: 90px;height: 90px; border-radius: 100px"></td>
                                            <td><a href="#">{$vo.co_name}</a></td>
                                             <td class="am-hide-sm-only">{$vo.co_intro}</td>
                                            <td class="am-hide-sm-only">{$vo.co_address}</td>
                                            <td class="am-hide-sm-only">{$vo.co_date}</td>
                                            <td class="am-hide-sm-only">{$vo.co_price}</td>

                                            <td>
                                                <div class="am-btn-toolbar">
                                                    <div class="am-btn-group am-btn-group-xs">
                                                        <button class="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-pencil-square-o"></span><a href="{:url('formmatch/edit',['id'=>$vo.co_id])}" style="color: #3bb4f2">修改</a></button>
                                                        <button class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><span class="am-icon-trash-o"></span><a href="{:url('formmatch/delMatch',['id'=>$vo.co_id])}" style="color: #3bb4f2">删除</a></button>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                        {/volist}
                                    </tbody>
                                </table>
                                <div class="am-cf">

                                    <div class="am-fr">
                                        <ul class="am-pagination tpl-pagination">
                                            {$contests->render()}
                                        </ul>
                                    </div>
                                </div>
                                <hr>

                            </form>
                        </div>

                    </div>

                    

                </div>
                <div class="tpl-alert"></div>
            </div>

        </div>


    </div>


    
    {include file="public:footer"}
    